package com.ruoyi.basic.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 物料信息对象 material_info
 * 
 * @author ruoyi
 * @date 2024-08-13
 */
public class MaterialInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 物料信息ID */
    private Long miId;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String miName;

    /** 物料类别ID */
    @Excel(name = "物料类别ID")
    private Long miCategoryId;

    /** 单位 */
    @Excel(name = "单位")
    private String miUnit;

    /*物料类别对象*/
    private MaterialCategory materialCategory;

    public MaterialCategory getMaterialCategory() {
        return materialCategory;
    }

    public void setMaterialCategory(MaterialCategory materialCategory) {
        this.materialCategory = materialCategory;
    }

    public void setMiId(Long miId)
    {
        this.miId = miId;
    }

    public Long getMiId() 
    {
        return miId;
    }
    public void setMiName(String miName) 
    {
        this.miName = miName;
    }

    public String getMiName() 
    {
        return miName;
    }
    public void setMiCategoryId(Long miCategoryId) 
    {
        this.miCategoryId = miCategoryId;
    }

    public Long getMiCategoryId() 
    {
        return miCategoryId;
    }
    public void setMiUnit(String miUnit) 
    {
        this.miUnit = miUnit;
    }

    public String getMiUnit() 
    {
        return miUnit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("miId", getMiId())
            .append("miName", getMiName())
            .append("miCategoryId", getMiCategoryId())
            .append("miUnit", getMiUnit())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
